package com.qzxy.premiumhotelsystem.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * ClassName: OrderPageDTO
 * Package: com.qzxy.premiumhotelsystem.domain.dto
 * Description:
 *
 * @Author Qwh
 * @Create 2024/9/19 14:55
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderPageDTO {



    @Schema(description = "页码 (不填默认为第一页)",defaultValue = "1")
    private Integer pageNo = 1;


    @Schema(description = "每页数量 (不填默认每页15条)",defaultValue = "15")
    private Integer pageSize = 15;

    @Schema(description = "用户手机号")
    private String telephone;

    @Schema(description = "房间号")
    private String roomNumber;

    @Schema(description = "预订订单状态 (待支付、已完成、已支付、已取消、已入住、已续订)")
    private String status;

    @Schema(description = "使用的vip会员类型 (青铜、白银、黄金、铂金、钻石)")
    private String vipType;

    @Schema(description = "入住时间 (yyyy-MM-dd格式) 数据库将会匹配所有checkInTime都在yyyy-MM-dd这一天的")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String checkInTime;;

    @Schema(description = "退房时间 (yyyy-MM-dd格式) 数据库将会匹配所有checkOutTime都在yyyy-MM-dd这一天的")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String checkOutTime;
}
